package reflect;

/**
 * 练习
 */
@AutoRunClass
public class Student {

    private int id = 1;
    private String name = "韩梅梅";
    private String gender = "女";
    private int age = 18;

    public Student() {

    }

    public Student(int id, String name, String gender, int age) {
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.age = age;
    }

    public void study() {
        System.out.println(name + ":好好学习,天天向上");
    }

    @TestMethod(20)
    public void playGame() {
        System.out.println(name + ":玩游戏");
    }

    public void say(String info) {
        System.out.println(name + ":" + info);
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", age=" + age +
                '}';
    }
}
